<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<section>
  在子类原型方法中调用，super指向父类原型，this指向子类实例
  在子类静态方法中调用，super指向父类构造函数，this指向子类构造函数
</section>
<script>
  class Person {
    hobby = '爱好';

    static test1 = 'test1';

    eat() {
      console.log('eat');
    }
  }

  class Parent extends Person {
    constructor() {
      super();
    }
  }

  const person = new Person();
  console.log(person);
  console.log(Person.test1);
</script>
</body>
</html>